package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(255)"`
	Password string `gorm:"type:varchar(255)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(255)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(255)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int(11)"`
	Rid int `gorm:"type:int(11)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int(11)"`
	Nid int `gorm:"type:int(11)"`
}
type Chen struct {
	gorm.Model
	Title string `gorm:"type:varchar(255)"`
	Price int    `gorm:"type:int(11)"`
	Li    string `gorm:"type:varchar(255)"`
}
type Ding struct {
	gorm.Model
	Bian   int    `gorm:"type:int(11)"`
	Name   string `gorm:"type:varchar(255)"`
	Chen   string `gorm:"type:varchar(255)"`
	Prices int    `gorm:"type:int(11)"`
	Cid    int    `gorm:"type:int(11)"`
}
type ChenDinglist struct {
	DingId int    `gorm:"type:int(11)"`
	Title  string `gorm:"type:varchar(255)"`
	Price  int    `gorm:"type:int(11)"`
	Li     string `gorm:"type:varchar(255)"`
	Bian   int    `gorm:"type:int(11)"`
	Name   string `gorm:"type:varchar(255)"`
	Chen   string `gorm:"type:varchar(255)"`
	Prices int    `gorm:"type:int(11)"`
}
